package com.example.testproject.activity.constraint

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.testproject.R
import com.example.testproject.ext.click
import kotlinx.android.synthetic.main.activity_constraint.*

/**
 *
 * @ClassName: ConstraintActivity
 * @Author: 史大拿
 * @CreateDate: 8/16/22$ 1:27 PM$
 * TODO 约束布局
 */
class ConstraintActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_constraint)

        bt1.click {
            startActivity(Intent(this, GuidelineActivity::class.java))
        }

        bt2.click {
            startActivity(Intent(this, GroupActivity::class.java))
        }

        bt3.click {
            startActivity(Intent(this, LayerActivity::class.java))
        }

        bt4.click {
            startActivity(Intent(this, BarrierActivity::class.java))
        }

        bt5.click {
            startActivity(Intent(this, PlaceholderActivity::class.java))
        }

        bt6.click {
            startActivity(Intent(this, LayoutOverActivity::class.java))
        }
    }
}